package 设计模式.适配器模式;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 孔令富  2021/10/26
 */
public class AdapterTest {

    public static void main(String[] args) {
        ApplicationContext act = new ClassPathXmlApplicationContext("spring-adapter.xml");

        UserCardService userCardService = (UserCardService) act.getBean("proxyBean");

        userCardService.card("王五");
    }
}
